#倒三角
for i in range(0,7):
    for j in range(0,7-i):
        print('*',end='')
    print()

#输出等腰三角形
for i in range(1,6):
    for j in range(1,6-i):
        print(' ',end='')
    for k in range(1,2*i):
        print('*',end='')
    print()    
       
#输出棱形(由上三角和倒三角组成)
row=eval(input('请输入行数（奇数）：'))
a=row//2+2
for i in range(1,a):
    for j in range(1,a-i):
        print(' ',end='')
    for m in range(1,2*i):
        print('*',end='')
    print()    
bottom_row=row//2
for z in range(1,bottom_row+1):
    for x in range(1,z+1):
        print(' ',end='')
    for c in range(1,2*bottom_row-2*z+2):
        print('*',end='')
    print()    

#输出空心棱形
row=eval(input('请输入行数（奇数）：'))
a=row//2+2
for i in range(1,a):
    for j in range(1,a-i):
        print(' ',end='')
    for m in range(1,2*i):
        if m==1 or m==2*i-1:
            print('*',end='')
        else:
            print(' ',end='')
    print()    
bottom_row=row//2
for z in range(1,bottom_row+1):
    for x in range(1,z+1):
        print(' ',end='')
    for c in range(1,2*bottom_row-2*z+2):
        if c==1 or c==2*bottom_row-2*z+1:
            print('*',end='')
        else:
            print(' ',end='')
    print()    
